home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Examples / EnterpriseObjects / SQLExecutor / SybaseDelegate.h < prev    next >
Encoding:
Text File  |  1994-09-29  |  1.1 KB  |  46 lines

  1. /* SybaseDelegate.h:
  2.  * You may freely copy, distribute, and reuse the code in this example.
  3.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  4.  * fitness for any particular use.
  5.  *
  6.  * 
  7.  *
  8.  */
  9.  
  10.  
  11. #import <eoaccess/eoaccess.h>
  12. #import <appkit/appkit.h>
  13. #import <foundation/NSArray.h>
  14. #import <foundation/NSObject.h>
  15. #import <foundation/NSDictionary.h>
  16.  
  17. @class SybaseChannel;
  18.  
  19. typedef enum
  20. {
  21.     SybaseRegularRow,
  22.     SybaseComputeRow,
  23.     SybaseReturnParameterRow,
  24.     SybaseReturnStatusRow
  25. } SybaseRowType;
  26.  
  27. @interface SybaseDelegate:NSObject
  28. {
  29.     SybaseRowType    currentRowType;
  30. }
  31.  
  32. - (SybaseRowType) currentRowType;
  33.  
  34. - (NSArray *)sybaseChannel:(SybaseChannel *)channel
  35.     willFetchAttributes:(NSArray *)attributes
  36.     forRowOfType:(SybaseRowType)rowType
  37.     withComputeRowId:(int)computeRowId;
  38.  
  39. - (BOOL)sybaseChannel:(SybaseChannel *)channel
  40.     willReturnRow:(NSDictionary *)row ofType:(SybaseRowType)rowType 
  41.     withComputeRowId:(int)computeRowId;
  42.     
  43. - (void)adaptorChannelDidChangeResultSet:channel;
  44. - (void)adaptorChannel:channel
  45.     didEvaluateExpression:(NSString *)expression;
  46. @end